// Copyright (C) Microsoft Corporation. All rights reserved.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Resources;
using System.Reflection;
using System.Globalization;


namespace Microsoft.DDSolutions.TfsAdmin
{
    public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
            Init();
        }

        private void About_Load(object sender, EventArgs e)
        {
            //Get the version number
            string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            
            this.NameVersion.Text = string.Format(CultureInfo.CurrentCulture, MainResources.AboutDialog, version);
            this.Text = MainResources.AboutBoxTitle;
            this.button1.Text = MainResources.strOk;
        }

        private void Init()
        {
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }


    }
}